
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #0f2027, #0b3439, #00385a);
  background-attachment: fixed;
  background-size: cover;
  padding: 20px;
  color: #ffffff;
  transition: background 0.6s ease, color 0.6s ease;
}


.glass-title {
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 15px 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  text-align: center;
  margin-bottom: 40px;
  color: #ffffff;
}


.tool-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.tool-card {
  background: rgba(255, 255, 255, 0.085);
backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 30px;
  width: 230px; /* Increased from 160px */
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, #00f0ff, #ff00c8);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.tool-card:hover::before {
  opacity: 0.2;
}

.tool-card:hover {
  transform: scale(1.25);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

.tool-card img {
  width: 170px;
  height: 170px;
  margin-bottom: 14px;
    transition: transform 0.4s ease;
}

.tool-card p {
  font-size: 18px; 
  font-weight: 600;
}

.tool-card:hover img {
  transform: scale(1.15);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.3));
}





@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

#batteryStatus {
  position: fixed;
  top: 20px; /* Adjust this value */
  right: 20px; /* Keep this */
  /* Keep all other styling properties for the battery status */
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 8px 16px;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  z-index: 9999;
  pointer-events: none;
}




.fade-container {
  animation: fadeIn 0.8s ease-out forwards;
}

.container {
  width: 100%;
  display: flex;
  justify-content: center;   /* Centers horizontally */
  align-items: center;
  gap: 25px;
  margin-top: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  position: relative;
  z-index: 10;
}